package cn.shengongying.enums;

/**
 * author: RXK
 * date: 2022/1/17 星期一
 * desc:
 */
public enum CacheKeyEnum {
    phone("phone:%s", "登录或者注册时的手机号码"),

    service_charge("service_charge", "服务基础费用"),

    order_serial_number("serial_number", "订单支付流水号,当天连续"),
    ;


    private final String key;

    CacheKeyEnum(String key, String desc) {
        this.key = key;
    }

    public String getKey() {
        return key;
    }

    public String getKey(String value) {
        return String.format(this.key, value);
    }
}
